#include "client.h"

int addEpoll(int epfd , int add_fd){
    struct epoll_event event;
    event.data.fd = add_fd;
    event.events = EPOLLIN;

    int ret = epoll_ctl(epfd,EPOLL_CTL_ADD,add_fd,&event);
    ERROR_CHECK(ret, -1 ,"addEpoll");
   // printf("add epoll over\n");
    return 0;
}

int delEpoll(int epfd, int delfd){
    int ret = epoll_ctl(epfd, EPOLL_CTL_DEL, delfd, NULL);
    ERROR_CHECK(ret, -1, "epollDel");
   // printf("del  epoll over\n");
    return 0;
}
